import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Work from '@/components/Work.vue'
import Skill from '@/components/Skill.vue'
import About from '@/components/About.vue'
import Luck from '@/components/Luck.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
    // children:[
    //   {
    //     path:"work",
    //     component: Work,
    //   },
    //   {
    //     path:"skill",
    //     component: Skill,
    //   },
    //   {
    //     path:"luck",
    //     component: Luck,
    //   },
    //   {
    //     path:"about",
    //     component: About,
    //   },
    // ]
  }
]

const router = createRouter({
  routes,
  history: createWebHistory(process.env.BASE_URL),
  scrollBehavior() {
    return { top: 0 }
  }
})

export default router
